<template>
  <h1>我是父组件</h1>
  <div><button @click="isShow =! isShow">开关</button></div>
  <hr>
  <div>text:{{ textVal }}</div>
  <C v-model:textValue='textVal' v-model="isShow" v-if="isShow"></C>
</template>

<script setup lang="ts">
import C from '@/components/expame/C.vue';  
import { ref, reactive } from 'vue';
 const isShow = ref(true)
 const textVal= ref<string>('v-model')
</script>

<style>


</style>